package com.itheima.dubbo.mongodb.impl;

import com.alibaba.dubbo.config.annotation.Service;
import com.itheima.commons.constants.Constants;
import com.itheima.commons.pojo.Album;
import com.itheima.dubbo.interfaces.AlbumApi;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.data.mongodb.core.MongoTemplate;
import org.springframework.data.mongodb.core.query.Criteria;
import org.springframework.data.mongodb.core.query.Query;

@Service
public class AblumApiImpl implements AlbumApi {

    @Autowired
    MongoTemplate mongoTemplate;

    @Override
    public void savePublishid(Album album,String userId) {
        mongoTemplate.save(album, Constants.TIME_LINE_PRE_+userId);
    }


}
